<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>权重叠加-第三题</title>
  <style>
    /* (0,2,0,0) */
    #father #son {
      color: blue;
    }

    /* (0,0,2,2) */
    div .c1 p .c2 {
      color: aqua;
    }

    /* 0,1,1,1 */
    #father p .c2 {
      color: blueviolet;
    }

    #father {
      color: green !important;
    }

    div #father .c1 {
      color: orange;
    }
  </style>
</head>

<body>
  <div id="father" class="c1">
    <p id="son" class="c2">
      这行文本是什么颜色？
    </p>
  </div>
</body>

</html>